package cn.migu.music.hangupsms.schedule;

import cn.migu.music.hangupsms.dbcache.SentSmsCacheManager;
import cn.migu.music.schedule.ScheduleJobExecutor;
import cn.migu.music.schedule.api.mq.JobExecuteNotify;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("sendRecordCacheLoadJob")
@Slf4j
public class SendRecordCacheLoadJob implements ScheduleJobExecutor {
    @Autowired
    private SentSmsCacheManager sentSmsCacheManager;

    @Override
    public void execute(JobExecuteNotify jobExecuteNotify) {
        sentSmsCacheManager.loadDbData();
    }
}
